package com.example.springbasicstudy.transaction.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * spring事务传播机制
 *
 * @TableName transaction
 */
@TableName(value = "transaction")
@Data
public class Transaction implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 变量名
     */
    @TableId
    private String variableName;
    /**
     * 变量值
     */
    private Integer variableValue;
}